All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.core.ConditionLock

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.core.ConditionLock

public class ConditionLock
extends NativeObject
implements Locking
This class wraps the Objective-C class NSConditionLock.


Constructor Index

 o ConditionLock()
This default constructor is equivalent to Objective-C's [[NSConditionLock alloc] init].
 o ConditionLock(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.
 o ConditionLock(int)
This constructor has the same effect as calling - initWithCondition: on a newly allocated object.

Method Index

 o condition()
A wrapper for the - condition Objective-C instance method.
 o lock()
A wrapper for the - lock Objective-C instance method defined by the Locking interface (known as the NSLocking Objective-C protocol).
 o lockBeforeDate(Date)
A wrapper for the - lockBeforeDate: Objective-C instance method.
 o lockWhenCondition(int)
A wrapper for the - lockWhenCondition: Objective-C instance method.
 o lockWhenConditionBeforeDate(int, Date)
A wrapper for the - lockWhenCondition:beforeDate: Objective-C instance method.
 o tryLock()
A wrapper for the - tryLock Objective-C instance method.
 o tryLockWhenCondition(int)
A wrapper for the - tryLockWhenCondition: Objective-C instance method.
 o unlock()
A wrapper for the - unlock Objective-C instance method defined by the Locking interface (known as the NSLocking Objective-C protocol).
 o unlockWithCondition(int)
A wrapper for the - unlockWithCondition: Objective-C instance method.

Constructors

 o ConditionLock
 protected ConditionLock(boolean shouldAllocate,
                         int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o ConditionLock
 public ConditionLock()
This default constructor is equivalent to Objective-C's [[NSConditionLock alloc] init].

 o ConditionLock
 public ConditionLock(int condition)
This constructor has the same effect as calling - initWithCondition: on a newly allocated object.

Methods

 o condition
 public native int condition()
A wrapper for the - condition Objective-C instance method.

 o lockWhenCondition
 public native void lockWhenCondition(int condition)
A wrapper for the - lockWhenCondition: Objective-C instance method.

 o tryLock
 public native boolean tryLock()
A wrapper for the - tryLock Objective-C instance method.

 o tryLockWhenCondition
 public native boolean tryLockWhenCondition(int condition)
A wrapper for the - tryLockWhenCondition: Objective-C instance method.

 o unlockWithCondition
 public native void unlockWithCondition(int condition)
A wrapper for the - unlockWithCondition: Objective-C instance method.

 o lockBeforeDate
 public native boolean lockBeforeDate(Date limit)
A wrapper for the - lockBeforeDate: Objective-C instance method.

 o lockWhenConditionBeforeDate
 public native boolean lockWhenConditionBeforeDate(int condition,
                                                   Date limit)
A wrapper for the - lockWhenCondition:beforeDate: Objective-C instance method.

 o lock
 public native void lock()
A wrapper for the - lock Objective-C instance method defined by the Locking interface (known as the NSLocking Objective-C protocol).

 o unlock
 public native void unlock()
A wrapper for the - unlock Objective-C instance method defined by the Locking interface (known as the NSLocking Objective-C protocol).


All Packages  Class Hierarchy  This Package  Previous  Next  Index